package com.wise.dao;

import com.wise.pojo.Sort;
import com.wise.pojo.Tag;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface SortDao {

    /**
     * 根据博主id查询分类条数
     * @param uid
     * @return
     */
    int findSortCountByUid(int uid);

    /**
     * 根据博主id查询分类以及分类下的总条数
     * @param uid
     * @return
     */
    List<Sort> findSortByUid(int uid);
}
